import org.joda.time.*
import java.text.NumberFormat
import java.text.DecimalFormat

class MoneyFormatCodec {

    static NumberFormat format = new DecimalFormat("###,###.00")
    static encode = {money ->
        return format.format(money)
    }
}